package com.jkc.xh.fragments;

import android.view.View;

import com.jkc.xh.R;
import com.jkc.xh.fragments.core.BaseFragment;
import com.jkc.xh.views.widget.NavBar;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EFragment;
import org.androidannotations.annotations.ViewById;

/**
 * Created by zhangbreeze on 15/11/21.
 */
@EFragment(R.layout.fragment_more_function)
public class MoreFunctionFragment extends BaseFragment {
    @ViewById(R.id.activityTitleName)
    NavBar activityTitleName;

    @AfterViews
    void initView() {
        activityTitleName.setOnMenuClickListener(new NavBar.OnMenuClickListener() {
            @Override
            public void onLeftMenuClick(View view) {
                finishFragment();
            }

        });
    }

    @Click(R.id.function_my_money)
    void openMyMoney() {
        MyMoneyFragment_.builder().build().startFragment(getActivity());
    }

    @Click(R.id.function_today_deal)
    void openTodayBussiness() {
        TodayBussinessFragment_.builder().build().startFragment(getActivity());
    }

    @Click(R.id.function_order_history)
    void openHistoryBussiness() {
        HistoryBussinessFragment_.builder().build().startFragment(getActivity());
    }

    @Click(R.id.function_money_bill)
    void openMoneyBill() {
        MoneyBillFragment_.builder().build().startFragment(getActivity());
    }

    @Click(R.id.function_bal)
    void openBal() {
        BalFragment_.builder().build().startFragment(getActivity());
    }

    @Click(R.id.function_auto_buy)
    void autoBuy() {
        TradeAutoBuyFragment_.builder().build().startFragment(getActivity());
    }

    @Click(R.id.function_auto_sold)
    void autoSold() {
        TradeAutoSellFragment_.builder().build().startFragment(getActivity());
    }
    @Click(R.id.function_auto_list)
    void autoList() {
        AutoListFragment_.builder().build().startFragment(getActivity());
    }
    @Click(R.id.haltSellList)
    void haltSellList() {
        HaltSellListFragment_.builder().build().startFragment(getActivity());
    }
}
